from flask import render_template
from apps import create_app,db
from flask_cors import CORS


from apps import db


app = create_app()
CORS(app)

@app.route('/')
def index():
    return "你好!"

@app.route('/login')
def login():
    return render_template('index.html')

@app.route('/create_model')
def create_model():
    db.create_all()
    return "DataModel created Successfully!"

if __name__ == '__main__':

    app.run(debug=True, host='0.0.0.0')
